<%@ page language="java" import="java.util.*,model.bo.Sub" pageEncoding="utf-8"%>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%
	String path = request.getContextPath();
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>首页 -邦美达咨询</title>
		<link href="images/favicon.ico" rel="shortcut icon" type="image/x-icon">
		<link href="css/Base.css" rel="stylesheet">
		<!--焦点大图-->
		<link type="text/css" rel="stylesheet" href="css/roll.css" />
		<script type="text/javascript" src="js/jquery-1.7.1.min.js"></script>
		<script type="text/javascript" src="js/raphael-min.js"></script>
		<script type="text/javascript" src="js/jquery.easing.js"></script>
		<script type="text/javascript" src="js/iview.js"></script>
		<script>
			$(document).ready(function() {
				$('#iview2').iView({
					pauseTime : 5000,
					directionNavHoverOpacity : 0,
					controlNav : true,
					controlNavNextPrev : false,
					controlNavTooltip : false,
					timerDiameter : 30,
					timerPadding : 3,
					timerStroke : 4,
					timerBarStroke : 0,
					timerPosition : "top-right"
				});
			});

		</script>
	</head>
	<body>
		<div class="header">
			<div class="logo">
				<div class="title">
					<img src="images/logo.jpg">
				</div>
				<div class="login">
					<ul>
						<li style="background: none;">
							<img src="images/ico-03.gif" width="10" height="10"><a title="加为收藏" href="javascript:void(0)">加为收藏</a>
						</li>
						<li>
							<img src="images/ico-02.gif" width="10" height="10"><a title="注册" href="./web.do?method=reg">注册</a>
						</li>
					</ul>
				</div>
			</div>
		</div>
		<!-- 导航开始 -->
		<div class="menu">
			<logic:notEmpty name="topMenu">
				<logic:empty name="typename">
					<ul>
						<li style="margin-left:10px;">
							<a href="./web.do?method=index" class="select">网站首页</a>
						</li>
						<logic:iterate id="topMenu" name="topMenu">
							<li>
								<a href="<%=path %>/web.do?method=show&istop=true&typeid=<bean:write name="topMenu" property="id" />"><bean:write name="topMenu" property="subname" /></a>
							</li>
						</logic:iterate>
					</ul>
				</logic:empty>
				<logic:notEmpty name="typename">
					<ul>
						<li style="margin-left:10px;">
							<a href="./web.do?method=index">网站首页</a>
						</li>
						<%
							List<Sub> subList = (List)request.getAttribute("topMenu");
							String subName = (String)request.getAttribute("typename");
							Integer fatherType = (Integer)request.getAttribute("fatherType");
							for(int i=0;i<subList.size();i++){
								//如果选中的是当前的
								if(subList.get(i).getId().equals(fatherType)){
									out.print("<li><a class='select' href='web.do?method=show&istop=true&typeid="+subList.get(i).getId()+"'>"+subList.get(i).getSubname()+"</a></li>");
								}else{
									out.print("<li><a href='web.do?method=show&istop=true&typeid="+subList.get(i).getId()+"'>"+subList.get(i).getSubname()+"</a></li>");
								}
							}
						%>
					</ul>
				</logic:notEmpty>
			</logic:notEmpty>
		</div>
		<!-- 导航结束 -->
		<div class="rollImg">
			<div class="index-img">
				<div id="iview2" class="iview">
					<div data-iview:image="images/IndexImg.jpg"></div>
					<div data-iview:image="images/tmp-01.jpg"></div>
				</div>
			</div>
		</div>
		<div id="wrap">
			<div class="left">
				<dl>
					<dt>新闻</dt>
					<dd class="news">
						<img src="images/tmp-02.jpg" width="175" height="133">
						<ul>
							<logic:empty name="newsList">
								<li>暂无新闻</li>
							</logic:empty>
							<logic:notEmpty name="newsList">
								<!-- 最多支持6条新闻 -->
								<logic:iterate id="newsItem" name="newsList" length="5" offset="0">
									<li>
										<span class="fr gray"><bean:write name="newsItem" property="updatetime" /></span>
										<a href="<%=path %>/web.do?method=newshow&id=<bean:write name="newsItem" property="id" />" target="_blank" title="<bean:write name="newsItem" property="title" />">
											<bean:define id="title1" name="newsItem" property="title" type="java.lang.String"></bean:define>
											<%int titleSize=20;%>
									        <%if(title1.length()>titleSize){%>
									            <%=title1.substring(0,titleSize)%>...
									        <%}else{ %>
									            <%=title1%>
									        <%} %>
										</a>
									</li>
								</logic:iterate>
							</logic:notEmpty>
						</ul>
					</dd>
				</dl>
				<dl>
					<dt>Product</dt>
					<dd class="product">
						<ul>
							<li>
								<h3>赴美带薪实习+旅游<br /><span class="font12">Summer Work and Travel</span></h3>
								<div class="img"><img class="subject-img" src="images/sub1.jpg"></div>
								<p>邦美达赴美带薪实习项目，即Summer Work &amp; Travel USA基于美国政府于1948年通过的信息及教育交流法案...</p>
								<a href="web.do?method=show&istop=true&typeid=2"><img src="images/more.jpg" class="imgMore"></a>
							</li>
							<li>
								<h3>赴美带薪专业实习<br /><span class="font12">Professional Practice</span></h3>
								<div class="img"><img class="subject-img" src="images/sub2.jpg"></div>
								<p>美国国务院在交换学者法案框架下制定的一项针对国际大学生亲赴美国企业实践自己专业知识与技能的文化交流项目...</p>
								<a href="web.do?method=show&istop=true&typeid=3"><img src="images/more.jpg" class="imgMore"></a>
							</li>
							<li class="liNone">
								<h3>国际夏令营/国际冬令营<br /><span class="font12">International camp experience</span></h3>
								<div class="img"><img class="subject-img" src="images/sub3.jpg"></div>
								<p>本营地有丰富的针对外国学生的英语培训经验，南京外国语学校曾有一百名学生在此参加过营地活动和口语培训。...</p>
								<a href="web.do?method=show&istop=true&typeid=5"><img src="images/more.jpg" class="imgMore"></a>
							</li>
							<li>
								<h3>英语综合能力培训<br /><span class="font12">Comprehensive Ability Training</span></h3>
								<div class="img"><img class="subject-img" src="images/sub4.jpg"></div>
								<p>本营地有丰富的针对外国学生的英语培训经验，南京外国语学校曾有一百名学生在此参加过营地活动和口语培训。</p>
								<a href="web.do?method=show&istop=true&typeid=6"><img src="images/more.jpg" class="imgMore"></a>
							</li>
							<li>
								<h3>特殊关爱国际营地<br /><span class="font12">American Travel for Children</span></h3>
								<div class="img"><img class="subject-img" src="images/sub5.jpg"></div>
								<p>中国癌症患儿赴美参加免费慈善营地活动。</p>
								<a href="web.do?method=show&istop=true&typeid=40"><img src="images/more.jpg" class="imgMore"></a>
							</li>
						</ul>
					</dd>
				</dl>
			</div>
			<div class="right">
				<dl>
					<dt>通知公告</dt>
					<dd>
						<ul>
							<logic:empty name="topicsList">
								<li>暂无公告</li>
							</logic:empty>
							<logic:notEmpty name="topicsList">
								<!-- 最多支持6条公告 -->
								<logic:iterate id="topicsItem" name="topicsList" length="5" offset="0">
									<li>
										<a href="<%=path %>/web.do?method=topicshow&id=<bean:write name="topicsItem" property="id" />" target="_blank" title="<bean:write name="topicsItem" property="title" />">
											<bean:define id="titleTopic" name="topicsItem" property="title" type="java.lang.String"></bean:define>
											<%int titleSize=10;%>
									        <%if(titleTopic.length()>titleSize){%>
									            <%=titleTopic.substring(0,titleSize)%>...
									        <%}else{ %>
									            <%=titleTopic%>
									        <%} %>
										</a>
									</li>
								</logic:iterate>
							</logic:notEmpty>
						</ul>
					</dd>
				</dl>
				<dl>
					<dt>关于我们</dt>
					<dd>
						<div class="show">
							<img src="images/tmp-03.jpg" width="121" height="89">
							<p>
								<a href="#">Matthew：来自美国...</a><br />
								<a href="#">杨老师：美国乔治华盛...</a><br />
								<a href="#">陈老师：资深教师。英...</a>
							</p>
						</div>
						<div class="content">&nbsp;&nbsp;&nbsp;&nbsp;邦美达国际教育咨询公司由美国外教、美国海归、以及经验丰富的中国教师共同创建；公司依托广东外语外贸大学、华南师范大学、广州大学、广州增城各个中小学资源，与国外政府、体验营地、就业公司均有长期合作；旨在帮助更多的年轻人看看外面的世界，实现人生的梦想！<br />&nbsp;&nbsp;&nbsp;&nbsp;交通便利，并配有大、中、小教室以及一对一咨询室，提供休息活动场所。<br />&nbsp;&nbsp;&nbsp;&nbsp;邦美达- 帮助每一个你实现人生的梦想！</div>
					</dd>
				</dl>
			</div><br clear="all" />
		</div>
		<!-- 导入底部 -->
		<jsp:include flush="true" page="_footer_.jsp"></jsp:include>
		<!-- 底部结束 -->
	</body>
</html>